import { createRouter, createWebHistory } from 'vue-router'
import ChatArea from '../components/ChatArea.vue';
import HomeChat from '../views/HomeChat.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', component: ChatArea },
    { path: '/new-chat', component: HomeChat },
    { path: '/chat/:id', component: ChatArea }
  ],
})

export default router
